home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / mrcry204.zip / CARDIOID.EKA < prev    next >
Text File  |  1991-03-04  |  257b  |  11 lines

  1. ; Graph of cardioid, a heart-shaped curve.
  2. ; Example of parametric plot
  3.  
  4. r(t) := 2 (COS(t) + 1)        ; equation in polar coords
  5. x(t) := r(t) COS(t)           ; polar to rectangular conversion
  6. y(t) := r(t) SIN(t)
  7.  
  8. PLOT y
  9. XAXIS x
  10. GBOUNDS 0, 2 PI
  11.